﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TrainingWorkshop.Model;
using System.ServiceModel;

namespace WCFContracts
{
    /// <summary>
    /// Author：Sissi-Zeng
    /// Date:2012-08-28 16:50
    /// CourseDetailBU provides interface to Client about CourseDetail business unit
    /// </summary>
   
    public partial interface IProjectBService
    {
       /// <summary>
       /// Add specific students into given course
       /// </summary>
       /// <param name="courseId">Given course</param>
       /// <param name="studentToAdd">List of student to add</param>
       /// <returns>success or fail of add student operation.</returns>
      [OperationContract]
       int AddStudentsToCourse(int courseId, List<Student> studentToAdd);

       /// <summary>
       /// Delete specific students from given course
       /// </summary>
       /// <param name="courseId">Given CourseId</param>
       /// <param name="studentsToDelete">List of student to delete</param>
       /// <returns>success of fail of delete oepration</returns>
       [OperationContract]
       int DeleteStudentsFromCourse(int courseId, List<Student> studentsToDelete);

    }
}
